<!DOCTYPE html>
<!-- xlsx.js (C) 2013-present  SheetJS http://sheetjs.com -->
<!-- vim: set ts=2: -->
<html>
<head>
    <title>SheetJS Live Grid Demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="icon" type="image/png" href="assets/logo.png"/>
    <link rel="stylesheet" href="assets/sheetjs.css">
</head>
<body>
<script src="assets/alertify.js"></script>
<script src="assets/canvas-datagrid.js"></script>

<link rel="stylesheet" media="screen" href="assets/samples.css">
<link rel="stylesheet" media="screen" href="assets/alertify.css">

<div id="body">
    <div id="left">
        <div id="logo">
            <a href="https://sheetjs.com"><img src="assets/logo.png" class="logo" alt="SheetJS Logo" width=128px
                                               height=128px/></a>
        </div>
        <div id="drop">拖拽上传</div>
        <input type="file" id="file" value=""/><label for="file">或单击此处选择文件</label>
        <h3> 选择工作表:</h3>
        <div id="buttons"></div>
    </div>
    <div id="right">
        <div id="header">
            <pre id="out"></pre>
            <h1>JavaScript读取和导出excel示例（基于js-xlsx）</h1>
            <h2>读取excel（读取全部sheet）</h2>
            <h3>
                Drop a spreadsheet in the box to the left to see a preview.<br/>
                Need a file? Why not the <a
                    href="https://obamawhitehouse.archives.gov/sites/default/files/omb/budget/fy2014/assets/receipts.xls">OMB
                FY 2014 Federal Receipts?</a>
            </h3>
            <table id="tt">
                <!--                <tr>-->
                <!--                    <td colspan="6"><a href="https://github.com/SheetJS/SheetJS.github.io">View This Page Source</a>; <a-->
                <!--                            href="https://github.com/SheetJS/js-xlsx">XLSX Library</a> (for parsing); <a-->
                <!--                            href="https://github.com/TonyGermaneri/canvas-datagrid">Grid Library</a>-->
                <!--                </tr>-->
                <!--                <tr>-->
                <!--                    <th>File Formats</th>-->
                <!--                    <td><a href="https://github.com/SheetJS/js-xlsx">Library Source</a></td>-->
                <!--                    <td><a href="https://SheetJS.github.io/js-xlsx">Interactive Demo</a></td>-->
                <!--                    <td><a href="http://npm.im/xlsx">"xlsx" on npm</a></td>-->
                <!--                    <td><a href="https://travis-ci.org/SheetJS/js-xlsx">node CI status</a></td>-->
                <!--                    <td><a href="stress.html">browser stress test</a></td>-->
                <!--                </tr>-->
            </table>
        </div>
        <div id="grid"></div>
        <div id="footnote">
        </div>
    </div>
</div>

<script data-cfasync="false" src="assets/email-decode.min.js"></script>
<script src="assets/shim.js"></script>
<script src="demo/dist/xlsx.full.min.js"></script>
<script src="assets/dropsheet.js"></script>
<script src="assets/main.js"></script>

<script src="assets/spin.js"></script>

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-36810333-1']);
    _gaq.push(['_setDomainName', 'sheetjs.com']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_trackPageview']);

    var test1;
    var test2;
    (function () {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        const s = document.getElementsByTagName('script')[0];
        test1 = s;
        test2 = _grid;
        console.log(ga)
        s.parentNode.insertBefore(ga, s);
    })();
    // console.log(test1)
    // console.log(test2)
</script>
</body>
</html>
